package ControlLayer;



import static org.junit.Assert.*;
import ModelLayer.Dvd;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class DVDCtrTest.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class DVDCtrTest
{
    /**
     * Default constructor for test class DVDCtrTest
     */
    public DVDCtrTest()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
        
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }

    @Test
    public void createDVD()
    {
        ControlLayer.DVDCtr dVDCtr1 = new ControlLayer.DVDCtr();
        dVDCtr1.createDVD(1, "nu", 100, new Dvd("title", "producer", "publish date"));
    }

    @Test
    public void createCopy()
    {
        ControlLayer.DVDCtr dVDCtr1 = new ControlLayer.DVDCtr();
        Dvd aDvd = new Dvd("title", "producer", "publish date");;
        Dvd dvd2 = aDvd;;
        dVDCtr1.createDVD(2, "asd", 100, null);
        assertNotNull(dVDCtr1.createCopy(2));
    }
}


